Lesson 5 - intermediate exercise

For each scenario suggest what variables would be needed and what their data types would be. You do not need to write the code for them. Note that the intermediate and advanced exercises will start to use pygame

Scenario - Move a character around the screen using keys.

Toggle answer

Scenario - Draw a rectangle which starts with size 30, 20 and ends up as 300, 200. It will increase in size by 2 every half a second. (hint - this will need a pygame clock)

Toggle answer